def fun_bmi(person,height,weight):
    print (person + "的身高":"+ str(height)+"米/t 体重: " + str(weight) + "千克")
    bmi=weight/(height*height)
    print(person+"的BMI的指数为:"+str(bmi))

    if bmi< 18.5:
        print("您的体重过轻")
    if bmi>=18.5 and bmi<24.9:
        print("正常范围，注意保持")  
    if bmi>=24.9 and bmi<29.9:
        print("您的体重过重")
    if bmi>=29.9
        print("肥胖")

fun_bmi("路人甲",1.83,60)
fun_bmi("路人甲",1.60,50)
